{extend name="../application/core/view/common/pc/bean/all.html" /}

{block name="pretable"}
<style>
    html {
        margin-top: -9px;
    }

    .layui-table-tool {
        display: none;
    }

    .layui-table-view {
        border-color: #ccc;
    }
</style>
{/block}

{block name="preop"}
<script>
    var pickerId = '{$__pickerId}';
    //数据加载完成的处理
    __table_config.onAfterDataLoaded = function (res) {
        $.each(res.data, function () {
            //检查当前行是否该设置默认选中
            if (window.parent && window.parent.g.picker) {
                this.LAY_CHECKED = window.parent.g.picker.contains(pickerId, this);
            } else {
                this.LAY_CHECKED = false;
            }
        });
        return res;
    }
</script>
{/block}

{block name="posttable"}
{/block}

{block name="postop"}
{/block}